{extend name="main/index" /}
{block name="main"}
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <i class="icon-home home-icon"></i>
            <li class="active">技术列表</li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search" action="{:url('/Technique/index')}" method = "post">
                <span class="input-icon">
                    <input type="text" placeholder="Search ..." class="nav-search-input" name="search" id="nav-search-input" autocomplete="off"  />
                    <input type="submit" value="搜索">
                </span>
            </form>
        </div>
    </div>

    <div class="page-content">
        <h3 class="header smaller lighter blue">技术列表</h3>
        <div class="row">
            <div class="col-xs-12">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="table-responsive">
                            <table id="sample-table-2" class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>项目名称</th>
                                        <th>施组设计书</th>
                                        <th>编制人</th>
                                        <!-- <th>流程状态</th> -->
                                        <th class="hidden-480">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="list" id="v"}
                                    <tr>
                                        <td>{$v['id']}</td>
                                        <td>{$v['project_name']}</td>
                                        <td>{$v['design_name']}</td>
                                        <td>{$v['organization_user']}</td>
                                        <!-- <td><button  data-id="{//$v['id']}" class="btn btn-xs btn-primary show-btn" data-toggle="modal"
                                data-target="#myModal" >查看</button>
                                        </td> -->
                                       
                                        <td>
                                            <button data-id="{$v['id']}" class="btn btn-xs btn-primary show-btn" data-toggle="modal"
                                data-target="#myModal" >查看详情</button> | 
                                            <a href="{:url('admin/technique/edit', ['id' => $v['id']])}" class="btn btn-xs btn-primary">修改</a> | 
                                            <button data-id="{$v['id']}" class="btn btn-xs btn-danger del-btn" >删除</button> | 
                                            <a href="{:url('admin/technique/export', ['id' => $v['id']])}" class="btn btn-xs btn-info">导出</a>
                                        </td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                        </div>
                        {$list->render()}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    项目名称:<u></u> 
                </h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        发起人:<p class="content2" style="margin-left: 40px"></p>
                        设计书:<p class="content3" style="margin-left: 40px"></p>
                        <!-- 文件路径:<p class="content4" style="margin-left: 40px"></p> -->
                        <!-- <a class="content5" href="">查看文件</a><br> -->
                        状态:<p class="content1" style="margin-left: 40px">
                        </p>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>


{/block}


{block name="myjs"}
{js href="/static/admin/assets/js/toastr.min.js"}
{js href="/static/admin/assets/xiaojs/admin_tech.js"}
{/block}


